<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_弹性布局入门</title>
</head>
    <style>
        .container{
            display: flex;
        }
        .item{
            width: 100px;
            height: 100px;
            background-color: lightgreen;
            border: 3px  solid green;
        }
    </style>
<body>
<div class="container">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
</div>
<!-- span行内元素作为弹性布局子项目后，块状化，也可以设置宽高了-->
<!--<div class="container">-->
<!--    <span class="item">1</span>-->
<!--    <span class="item">2</span>-->
<!--    <span class="item">3</span>-->
<!--</div>-->

</body>
</html>